
{include file="Public/header"/}
<!--HEADER-->
<!--登录-->


<div class="clearfix clearfix80"></div>


<div class="container-fluid">
    <div class="container">


        <div class="form-horizontal">
            <div class="form-group">
                <label for="inputText" class="col-md-3 col-md-offset-1 control-label">用户账号</label>
                <div class="col-md-5">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="glyphicon glyphicon-phone"></span></span>
                        <input type="text" class="form-control" id="loginUserName" name="loginUserName" placeholder="身份证" aria-required="true" aria-describedby="firstname1-error" aria-invalid="true" value="">
                       
                    </div>
                </div>
            </div>

            <div class="form-group" style="margin-bottom: 0px;">
                <label for="inputPassword" class="col-md-3 col-md-offset-1 control-label">密码</label>
                <div class="col-md-5">
                    <div class="input-group">
                        <span class="input-group-addon"><span class="glyphicon glyphicon-lock" id='dl'></span></span>
                        <input type="password" class="form-control" id="loginUserPassword" name="loginUserPassword" placeholder="请输入密码" aria-required="true" aria-describedby="firstname1-error" aria-invalid="true" value="">
                    </div>
                    <p class="redFont" id="yzz" style="margin: 5px 0 0 0;color:red;">&nbsp;</p>
                </div>

            </div>

            <div class="form-group">
                <div class="col-md-offset-4 col-md-5">
                    <div class="checkbox">
                        <label>
                            <input type="checkbox"> 下次自动登录？<!--<a href="/Modifypwd/index">忘记密码?</a>-->
                        </label>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-3 col-md-offset-1 control-label"></label>
                <div class="col-md-3">
                    <button type="submit" class="btn btn-primary form-control" id="keyLogin">登录</button>
                </div>
            </div>
        </div>


    </div>
</div>
<div class="clearfix clearfix80 hidden-xs"></div>
<div class="clearfix clearfix80 hidden-xs"></div>
<div class="clearfix clearfix80 hidden-xs"></div>
<div class="clearfix clearfix80 hidden-xs"></div>
<div class="clearfix clearfix80 hidden-xs"></div>
<div class="clearfix clearfix80 hidden-xs"></div>


<!--footer-->
{include file="Public/footer"/}

<script>
// alert($)
    $("#loginUserName").focus(function(){
        $("#dl").html('');
    });
    $("#loginUserPassword").focus(function(){
        $("#dl").html('');
    })
    $("button").click(function(){
        $.post('/index/login/userLogin',
            {
                user:$("#loginUserName").val(),
                pwd: $("#loginUserPassword").val()
            },
            function(data){
                if(data['msg']=='success'){
                    alert('登录成功');
                    window.location.href='/home/Certification/index';
                }else if(data['msg']=='success_s'){
                    window.location.href='/home/Center/index';
                }else if(data['msg']=='success_xg'){
                     window.location.href='/home/Center/index';
                }else if(data['msg']=='success_ss'){
                     window.location.href='/home/Center/index';
                }
				$("#yzz").html(data.msg).show();
            });
    });

    
</script>